package paper.check.word.parse;


public class WordParseFactory {

    public static WordParse factory(String path) {
        WordParse parse = null;
        Integer version = judgeWordVersion(path);
        if (version == 2) {
            parse = new Word2007Parse();
        } else {
            parse = new Word2003Parse();
        }
        return parse;
    }

    // 判断 word的版本 1 位 2003,2为2007
    protected static Integer judgeWordVersion(String path) {
        return 2;
    }
}
